#include <iostream>
#include <opencv2/opencv.hpp>
#include <string>
std::string path = "/Users/wudihang/Desktop/Gitee/MacOpenCV_cpp/input/lenna.jpeg";

int main(){
    cv::Mat img = cv::imread(path, -1);
    if (img.empty())
        return -1;
    cv::namedWindow("Example1", cv::WINDOW_AUTOSIZE); //自动调节窗口大小
    cv::imshow("Example1", img);
    cv::waitKey(0);
    cv::destroyWindow("Example1");
    return 0;
}